Conversation
Avoid _hypot being defined twice by renaming it to _STUB1 Taken from my own code at untodesu/refraction#14
…lity for prop_interactable similar to that of func_button
Fix a symbol being defined twice
…rceded by mapspawn_addon and near-unusable for Steam Workshop)
There was a problem hiding this comment.
commit 6ceb808
This is identical to using the hidehud cvar. I was thinking of something more refined, though I should've mentioned that in the PR.
I have this code from 2 years ago which allows the individual visibility of each hud element instead of hud render groups like how hidehud bits do. This is closer to what I had in my mind.
void CScriptVGUI::SetHUDPanelHiddenBits( const char* name, int bits )
{
CHudElement* elem = gHUD.FindElement(name);
if ( !elem )
return;
elem->SetHiddenBits( bits );
}This could be reworked to a user-friendly SetHudElementVisible(string, bool) version that sets hiddenbits to -1 or their previous value which would be saved on the initial call on the particular hud element.
If you approve but don't wish to make this, I can open a PR for it.
…e VScript" This reverts commit 6ceb808.
Consistent and descriptive variable names, simplified calculations.
vscript vgui HUD visibility control
VDeltaGabriel
pushed a commit
to Project-P2009/p2009_sdk
that referenced
this pull request
Apr 27, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Will hopefully come out a lot faster this time.